/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 13-5-15
 * Time: 下午7:44
 * To change this template use File | Settings | File Templates.
 */

/**
console.log("hello");

console.log("%s %d","2+3=",5);

var http = require('http');
http.createServer(function(req,res){
    res.writeHead(200,{'Content-Type':'text/html'});
    res.write("<h1>Node.js</h1>");
    res.end("<p>Welcome!</p>");
}).listen(3000);

console.log("HTTP server is listening at port 3000");

 */
var fs = require('fs');
fs.readFile('D:/Sublime Text2使用技巧.txt','utf-8',function(err,data){
    if(err){
        console.error(err);
    }else{
        console.log(data);
    }
});
console.log('end');